package bidgetserver;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import java.util.*;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Reminder {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String reminderID;

	@Persistent
	private String searchString;

	@Persistent
	private String userName;

	@Persistent
	private String minPrice;

	@Persistent
	private String maxPrice;

	@Persistent
	private String top5Results;

	//explicit CTOR:
	public Reminder(String searchString, String userName, String minPrice, String maxPrice, String top5Results) {
		this.searchString=searchString;
		this.userName=userName;
		this.minPrice=minPrice;
		this.maxPrice=maxPrice;
		this.top5Results=top5Results;
		this.reminderID = "initialID";
	} 
	//getters:
	public Long getId() {
		return id;
	}

	public String getReminderID(){
		return reminderID;
	}

	public String getSearchString() {
		return searchString;
	}

	public String getUserName() {
		return userName;
	}

	public String getMinPrice() {
		return minPrice;
	}

	public String getMaxPrice() {
		return maxPrice;
	}

	public String getTop5Results() {
		return top5Results;
	}

	//setters:
	public void setSearchString(String searchString) {
		this.searchString = searchString;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setMinPrice(String minPrice) {
		this.minPrice = minPrice;
	}

	public void setMaxPrice(String maxPrice) {
		this.maxPrice = maxPrice;
	}
	
	public void setTop5Results(String top5Results) {
		this.top5Results = top5Results;
	}

	public void setReminderID (String reminderID){
		this.reminderID=reminderID;
	}
	
	
}
